package com.rtf.framework.runconfig.config;

import com.rtf.framework.runconfig.AppRunConfigService;
import com.rtf.framework.runconfig.impl.AppRunConfigServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
@ComponentScan(basePackages = "com.rtf.framework.runconfig")
@EnableConfigurationProperties(AppRunConfigProperties.class)
public class AppRunConfigAutoConfiguration {

    @Bean
    public AppRunConfigService appRunConfigService(){
        return new AppRunConfigServiceImpl() ;
    }

}
